<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">



<html xmlns:c="http://java.sun.com/jstl/core"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
	  xmlns:jsp="http://java.sun.com/JSP/Page"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:s="http://jboss.com/products/seam/taglib"
	  xmlns:spring="http://www.springframework.org/tags"
	  xmlns:a4j="http://richfaces.org/a4j"
	  xmlns:rich="http://richfaces.org/rich"
	  xmlns:t="http://myfaces.apache.org/tomahawk"
	  xmlns:clickframes="http://issuetracker.demo"
	  xmlns="http://www.w3.org/1999/xhtml">
<f:loadBundle basename="messages" var="messages" />
<fmt:setBundle basename='messages' scope='application' />

<ui:composition
    template="/WEB-INF/facelets/layout/layout.xhtml">

    <ui:define name="title">Edit Issue</ui:define>
    <ui:param name="clickframesPage" value="editIssue" />

    <ui:define name="page-content">

	  <h2>Edit Issue</h2>
	  <!--
		 This page allows the user to modify an existing issue.
	  -->
	  
	  <div id="page-navigation" class="grid_2 alpha">
		  <ul>
			<li>
			   <a href="viewIssues.seam">View Issues</a>
			</li>
			<li>
			   <a href="newIssue.seam">Add New Issue</a>
			</li>
			<li>
			   <a href="changePassword.seam">Change Password</a>
			</li>
			<li>
			   <a href="viewIssue.seam?issueId=#{editIssueController.issue.id}">Cancel</a>
			</li>
		  </ul>
	  </div>
	  
	  <div id="page-content" class="grid_10 omega">

	  <clickframes:messages />
	  

	  <h:form id="form" >
	  <s:validateAll>

		 <div class="actions alpha prefix_2 grid_4">
		 </div>
		 <div class="clear"></div>
	  </s:validateAll>
	  </h:form>
	  <h:form id="editIssueForm"  enctype="multipart/form-data" >
	  <s:validateAll>
		 <div class="field">
			 <label class="grid_2 alpha">Issue Title</label>
			 <div class=" field-input  grid_4">
				 <clickframes:editIssue-editIssueForm-issueTitle />
			 </div>
			 <div class="field-message grid_4 omega">
				 <clickframes:editIssue-editIssueForm-issueTitle-message />
			 </div>
			 <div class="clear"></div>
		 </div>
		 <div class="field">
			 <label class="grid_2 alpha">Description</label>
			 <div class=" field-input  grid_4">
				 <clickframes:editIssue-editIssueForm-description />
			 </div>
			 <div class="field-message grid_4 omega">
				 <clickframes:editIssue-editIssueForm-description-message />
			 </div>
			 <div class="clear"></div>
		 </div>
		 <div class="field">
			 <label class="grid_2 alpha">Priority</label>
			 <div class=" field-input  grid_4">
				 <clickframes:editIssue-editIssueForm-priority />
			 </div>
			 <div class="field-message grid_4 omega">
				 <clickframes:editIssue-editIssueForm-priority-message />
			 </div>
			 <div class="clear"></div>
		 </div>
		 <div class="field">
			 <label class="grid_2 alpha">Assignee</label>
			 <div class=" field-input  grid_4">
				 <clickframes:editIssue-editIssueForm-owner />
			 </div>
			 <div class="field-message grid_4 omega">
				 <clickframes:editIssue-editIssueForm-owner-message />
			 </div>
			 <div class="clear"></div>
		 </div>
		 <div class="field">
			 <label class="grid_2 alpha">Environment</label>
			 <div class=" field-checkbox  grid_4">
				 <clickframes:editIssue-editIssueForm-environment />
			 </div>
			 <div class="field-message grid_4 omega">
				 <clickframes:editIssue-editIssueForm-environment-message />
			 </div>
			 <div class="clear"></div>
		 </div>
		 <div class="field">
			 <label class="grid_2 alpha">Attachment</label>
			 <div class=" field-input  grid_4">
				 <clickframes:editIssue-editIssueForm-attachment />
			 </div>
			 <div class="field-message grid_4 omega">
				 <clickframes:editIssue-editIssueForm-attachment-message />
			 </div>
			 <div class="clear"></div>
		 </div>

		 <div class="actions alpha prefix_2 grid_4">
			 <clickframes:editIssue-editIssueForm-updateIssue />
		 </div>
		 <div class="clear"></div>
	  </s:validateAll>
	  </h:form>
  
		 <div id="outputs">
			<div class="output grid_5 alpha">
			   <h3>Issue</h3>
			   <table>
			   <tr>
				  <th>Id</th>
				  <td>
                                    #{editIssueController.issue.id}
				  </td>
			   </tr>
			   <tr>
				  <th>Title</th>
				  <td>
                                    #{editIssueController.issue.title}
				  </td>
			   </tr>
			   <tr>
				  <th>Description</th>
				  <td>
                                    #{editIssueController.issue.description}
				  </td>
			   </tr>
			   <tr>
				  <th>Priority</th>
				  <td>
                                    #{editIssueController.issue.priority}
				  </td>
			   </tr>
			   <tr>
				  <th>Assignee</th>
				  <td>
                                    #{editIssueController.issue.assignee}
				  </td>
			   </tr>
			   <tr>
				  <th>Owner</th>
				  <td>
                                    #{editIssueController.issue.owner}
				  </td>
			   </tr>
			   <tr>
				  <th>Environment</th>
				  <td>
                                    #{editIssueController.issue.environment}
				  </td>
			   </tr>
			   <tr>
				  <th>Attachment</th>
				  <td>
                                    <h:panelGroup rendered="#{editIssueController.issue.attachment.valid}">
                                      <a href="issue.download?id=#{editIssueController.issue.id}">Download</a>
                                    </h:panelGroup>
				  </td>
			   </tr>
			   </table>
			</div>
 			<div class="clear"></div>
		 </div>
 
 	  </div>

    </ui:define>
</ui:composition>
</html><!-- clickframes::version=2569310386::clickframes -->